﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FinalTestMachine.Funs
{
    /// <summary>
    /// 测试站设置
    /// </summary>
    class FunStationSettings : FunsSelectionHelperbase
    {
        public static readonly FunStationSettings Cur = new FunStationSettings();
        private FunStationSettings()
        {
            Read();
        }

        public static FunStationSettings CreateInstrance()
        {
            return Cur;
        }

        [ISaveReaddll.SaveRemark]
        /// <summary>
        ///  //前提条件
        /// 
        /// 为True时，各工位在没用禁用的前提下，必须测试；
        /// 为Flase时，各工位依据前一站的测试结果:OK时测试，其它的跳过
        /// 
        /// </summary>
        public bool IsMust { get; set; }

        [ISaveReaddll.SaveRemark]
        /// <summary>
        /// 测试站1是否启用。true是禁用的含义，false是启用的含义
        /// </summary>
        public bool Site1IsUse = true;

        [ISaveReaddll.SaveRemark]
        /// <summary>
        /// 测试站2是否启用
        /// </summary>
        public bool Site2IsUse = true;

        [ISaveReaddll.SaveRemark]
        /// <summary>
        /// 测试站3是否启用
        /// </summary>
        public bool Site3IsUse = true;

        [ISaveReaddll.SaveRemark]
        /// <summary>
        /// 测试站4是否启用
        /// </summary>
        public bool Site4IsUse = true;

        [ISaveReaddll.SaveRemark]
        /// <summary>
        /// 测试站4是否启用
        /// </summary>
        public bool Site5IsUse = true;

        [ISaveReaddll.SaveRemark]
        /// <summary>
        /// 测试站4是否启用
        /// </summary>
        public bool Site6IsUse = true;
    }
}
